<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        <title>Untitled Document</title>
        <!--
        -->
        <script type="text/javascript" src="js/jquery-1.6.1.js">
        </script>
        <script type="text/javascript" src="js/dom2.js">
        </script>
        <script type="text/javascript" src="js/microajax.minified.js">
        </script>
        <!--
        <script type="text/javascript" src="js/jshen.core.js"></script>
        <script type="text/javascript" src="js/jshen.dom.js"></script>
        -->
    </head>
    <body>
        <div class="ddd d1">
        </div>
		<div>
			<div class="d4"></div>
		</div>
        <div>
            <div class="ddd d2">
            </div>
            <div class="ddd d3">
            </div>
        </div>
		<script type="text/javascript">	
//			var d2 = $('.d2').parent();
//			console.log(d2[0]);
//			var d3 = $('.d3').parent();
//			console.log(d3[0]);
//			var d4 = $('.d4').parent();
//			console.log(d4[0]);
//			
//			console.log(d2[0] === d3[0]);
//			console.log(d2[0] === d4[0]);
			console.log($('.ddd').parent());

//			var d2 = $('.d2')[0];
//			for (var name in d2) {
//				console.log(name + " = " + d2[name]);
//			}
//			var d3 = $('.d3')[0];
//			var r = d3.compareDocumentPosition(d2);
//			console.log(r);
//			console.log(r & 4);
        </script>
    </body>
</html>
